const request = axios.create({
  baseURL: import.meta.env.VITE_APP_BASE_URL
  // timeout: 3000,
  // withCredentials: true
});

request.interceptors.request.use(config => {
  console.log('config', config);
  return config;
});

request.interceptors.response.use(
  response => {
    console.log(response);
    return response;
  },
  error => {
    return Promise.reject(error);
  }
);

export default request;
